package com.test.service.impl;

import com.test.mapper.TypesMapper;
import com.test.pojo.Types;
import com.test.service.TypesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TypesServiceImpl implements TypesService {
    @Autowired
    private TypesMapper typesMapper;

    @Override
    public List<Types> findAll() {
        return typesMapper.selectAllTypes();
    }
}